<template>

    <a-textarea v-model="content" placeholder="请输入回复内容" :rows="4" @change="onchange"/>

</template>
<script>

    export default {
        props: ['dataSource'],
        data() {
            return {
                content: null,
            }
        },

        methods: {
            onchange(e) {
                if (e.type === 'change') {
                    this.$emit("callBack", {text: this.content})
                }

            }
        },

        watch: {
            dataSource(val) {
                return this.content = val.text;
            }
        }


    }
</script>
<style scoped>
</style>
